﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<IEnumerable<WebMVC.Areas.AdminPanel.Models.IndustryViewModel>>" %>

    <table>
        <tr>
            <th>
                ID
            </th>
            <th>
                Name En
            </th>
            <th>
                Name Ru
            </th>
            <th>
                Name Am
            </th>
            <th>Actions</th>
        </tr>

    <% foreach (var item in Model) { %>
    
        <tr>
            
            <td>
                <%: item.Id %>
            </td>
            
            <td>
                <%: item.NameEn %>
            </td>
            <td>
                <%: item.NameRu %>
            </td>
            <td>
                <%: item.NameAm %>
            </td>
            <td>
                <%= Html.ActionLink("Edit", "EditIndustry", new { id = item.Id }, new {@class="icon-link edit-link" })%> |
                <%= Html.ActionLink("Delete", "DeleteIndustry", new { id = item.Id }, new { @class = "icon-link delete-link" })%>
            </td>
        </tr>
    
    <% } %>

    </table>

    <p>
        <%= Html.ActionLink("Create New Industry", "CreateIndustry", null, new { @class = "icon-link create-link" })%>
    </p>


